package com.xdxc.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

@FeignClient(name = "xdxc-auth")
public interface AuthClient {

    @PostMapping("/client/token")
    Map<String, Object> getToken(@RequestParam("clientId") String clientId,
                                 @RequestParam("Timestamp") String Timestamp,
                                 @RequestParam("clientSecret") String clientSecret);
}

